const mysql = require('mysql2/promise');

const con = mysql.createPool({
  host: 'localhost',
  user: 'root',
  password:'ddd',
  database:'todo_list'
});

class Result{
  constructor(){
    this.code = 0;
    this.msg = 'ok';
    this.data = null;
  }
}

module.exports = { con,Result };
